package com.frejoys.common.dto.admin;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AdUpDto{

        @NotNull(message = "{600}")
        @Schema(type = "Integer", name = "id", description = "id", required = true, defaultValue = "1")
        private Integer id;

        @Schema(type = "String", name = "cover", description = "广告图", required = false, defaultValue = "")
        private String cover;

        @Schema(type = "String", name = "url", description = "url地址", required = false, defaultValue = "")
        private String url;

        @Schema(type = "Integer", name = "type", description = "类型：0静态广告，1自定义广告，2店铺广告", required = false, defaultValue = "1")
        private Integer type;

        @Schema(type = "Integer", name = "commonId", description = "通用id，根据type不同，例如店铺id", required = false, defaultValue = "1")
        private Integer commonId;

        @Schema(type = "String", name = "startTime", description = "起始时间", required = false, defaultValue = "2023-11-30 12:00:00")
        private String startTime;

        @Schema(type = "String", name = "endTime", description = "结束时间", required = false, defaultValue = "2023-11-30 12:00:00")
        private String endTime;
}
